
import { getOssToken  } from "@/api/uploadOss";

const user = {
  state: {

  },
  actions: {
    async getSTS(state,visit) {
      try {
        const res = await getOssToken() 
          if (res.code === 0) {
            const { bucket, credential, end_point } = res.data
            return {
              ...res.data,
            }
          }
  
      } catch (error) {
        console.log(error)
        // this.$message.error('获取上传票据出错，请稍后重试')
      }
    },
  }
}

export default user
